<?php get_header(); ?>

	<div id="main">

		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				<h2><?php the_title(); ?></h2>

				<?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
				<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
				
				<?php if (function_exists('the_tags')) { ?>
					<p class="tags"><?php the_tags('',', ',''); ?></p>
				<?php } ?>

				<p class="meta">
					<span class="cal"><a href="<?php bloginfo('url'); ?>/<?php the_time('Y') ?>/<?php the_time('m') ?>/" title="View all posts for the month of <?php the_time('F, Y') ?>"><?php the_time('m/d/Y') ?></a></span> | 
					<span class="cat"><?php the_category(', ') ?></span> |
					<span class="com"><a href="<?php comments_link(); ?>" title="Read the comments to this post">Comments</a></span>
					<?php edit_post_link('Edit','| ',''); ?>
				</p>

			<?php comments_template(); ?>

			<ul class="postnav">
				<li class="left"><?php previous_post_link('&laquo; %link') ?>&nbsp;</li>
				<li class="right">&nbsp;<?php next_post_link('%link &raquo;') ?></li>
			</ul>

		<?php endwhile; else: ?>
		<p>Sorry, no posts matched your criteria.</p>
		<?php endif; ?>
	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>